<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
	<title>修改用户信息</title>
	<link rel="stylesheet" href="${pageContext.request.contextPath}/adminstrator/assets/css/layui.css">
	<script src="${pageContext.request.contextPath}/adminstrator/assets/layui.all.js"></script>
</head>
<body>



<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
	<legend>修改文章信息</legend>
</fieldset>

<form class="layui-form" action="${pageContext.request.contextPath}/updateBook" method="post">
	<input name="articleId" value="${book.getArticleId()}" style="display: none">
	<div class="layui-form-item">
		<label class="layui-form-label">文章标题</label>
		<div class="layui-input-inline">
			<input type="text" name="title" value="${book.getTitle()}" lay-verify="pass" placeholder="请输入文章标题" autocomplete="off" class="layui-input">
		</div>
		<div class="layui-form-mid layui-word-aux">起一个容易记住的名字吧</div>
	</div>

	<div class="layui-form-item">
		<label class="layui-form-label">作者名称</label>
		<div class="layui-input-inline">
			<input type="text" name="author" id="" value="${book.getAuthor()}" lay-verify="pass" placeholder="请输入作者名称" autocomplete="off" class="layui-input">
		</div>
		<div class="layui-form-mid layui-word-aux">请填写6到12位密码</div>
	</div>

	<div class="layui-form-item">
		<label class="layui-form-label">点赞量</label>
		<div class="layui-input-inline">
			<input type="text"  value="${book.getLikes()}" name="likes" lay-verify="pass" placeholder="请输入邮箱" autocomplete="off" class="layui-input">
		</div>
<%--		<div class="layui-form-mid layui-word-aux">点赞量</div>--%>
	</div>

<%--	<div class="layui-form-item">--%>
<%--		<label class="layui-form-label">Isbn图书号</label>--%>
<%--		<div class="layui-input-inline">--%>
<%--			<input type="text"  value="${books.getIsbn()}" name="isbn" lay-verify="pass" placeholder="请输入邮箱" autocomplete="off" class="layui-input">--%>
<%--		</div>--%>
<%--	</div>--%>

<%--	<div class="layui-form-item">--%>
<%--		<label class="layui-form-label">价格</label>--%>
<%--		<div class="layui-input-inline">--%>
<%--			<input type="text"  value="${books.getPrice()}" name="price" lay-verify="pass" placeholder="请输入邮箱" autocomplete="off" class="layui-input">--%>
<%--		</div>--%>
<%--	</div>--%>

	<div class="layui-form-item">
		<label class="layui-form-label">发表日期</label>
		<div class="layui-input-inline">
			<input type="text"  value="${book.getPublishdate()}" name="publishdate" lay-verify="pass" placeholder="请输入出版日期" autocomplete="off" class="layui-input">
		</div>
	</div>

	<div class="layui-form-item layui-form-text">
		<label class="layui-form-label">文章内容</label>
		<div class="layui-input-block">
			<textarea placeholder="请输入内容" class="layui-textarea" name="content" >${book.getContent()}</textarea>
		</div>
	</div>

	<div class="layui-form-item">
		<div class="layui-input-block">
			<input type="submit" class="layui-btn" name="save" value="提交" />
			<button type="reset" class="layui-btn layui-btn-primary">重置</button>
			<button type="reset" class="layui-btn layui-btn-primary"><a href="/allBook">返回</a></button>
		</div>
	</div>
</form>
</body>
</html>
